<template>
  <div class="index">
    <el-container>
      <el-header>
        <nav-bar class="nav-bar"/>
        <div class="right">
          <dropdown-bar/>
        </div>
      </el-header>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import DropdownBar from '@/components/layout/DropdownBar.vue'
import NavBar from '@/components/home/NavBar.vue'

export default {
  name: 'index',
  components: {
    DropdownBar,
    NavBar,
  },
  data () {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.index {
  height: 100%;

  .el-container {
    height: 100%;
    background-color: #fff;

    .el-header {
      padding: 0;
      background: #042e8d;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #ecf0f1;

      .nav-bar {
        flex: 1;
      }

      .right {
        width: 150px;
      }
    }

    .el-main {
      background: #f0f2f5;
      flex: 1;
    }

    .el-footer {
      height: auto !important;
      text-align: center;
      padding: 1rem;
      box-sizing: border-box;
      color: #ecf0f1;
      background: #2c2c54;
    }
  }
}
</style>
